<?php
require_once '../includes/config.php';


$product_id = $_POST['product_id'];
$status = $_POST['status'];

$qry = mysql_query("UPDATE tbl_product SET show_on_home='$status' WHERE product_id=$product_id") or die(mysql_error());

if($qry)
    echo 'suc';
else
    echo 'fail';


?>